﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 汽车类
{
    class car:Vehicle
    {
        //小车类Car是Vehicle的子类，其中包含的属性有载人数loader。
        protected int Loader;
        public car()
        {
            Wheels = 4;
            Weight = 150;
            Loader = 4;
        }
        public void print()
        {
            Console.WriteLine("小车的轮子有{0}，重量有{1}KG，载有人数{2}人",Wheels,Weight,Loader);
        }
    }
}
